package cn.xi.service.checkItem;

import cn.xi.checkItem.SecuritySpringService;
import cn.xi.dao.SecuritySpringDao;
import cn.xi.pojo.User;
import com.alibaba.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.RestController;


@Service(interfaceClass = SecuritySpringService.class)
@Transactional
public class SecuritySpringServiceImpl implements SecuritySpringService {

    @Autowired
    private SecuritySpringDao securitySpringDao;

    @Override
    public User findSecurity(String name) {
        User security = securitySpringDao.findSecurity(name);
        return security;
    }
}
